export default {
	methods: {
		//开始考试
		startAnswer(params) {
			//params查询的 
			this.axios.post('/web/student/exam/startAnswerPaper', params).then(res => {
				sessionStorage.setItem("topicList", JSON.stringify(res));
				this.Question = res.exercisesQuestion;
				this.CountVO = res.appSingMultTrueCountVO;
				this.show = 11; //展示答题页
				this.modeFlase=false;
				// this.changeAnswer();//题目赋值答题页
			}).catch(err => {
				console.log(err);
				this.modeFlase=false;
				// this.$refs.mask.style.display = 'none'
			});
		},
		changeAnswer() {
			//获取题目跳转答题页
			this.Question = JSON.parse(sessionStorage.getItem('topicList')).exercisesQuestion;
			this.CountVO = JSON.parse(sessionStorage.getItem('topicList')).appSingMultTrueCountVO;
		},
		viewWrongTopic(params) {
			//0回顾错题，1回顾全部
			this.axios.get('/web/student/home/getlookBackQuestion', {
				params
			}).then(res => {
				sessionStorage.setItem("topicList", JSON.stringify(res));
				this.modeFlase = false; //提示弹窗关闭
				this.Question = res.exercisesQuestion;
				this.CountVO = res.appSingMultTrueCountVO;
				this.show = 11; //展示答题页
			});
		},
		myWrongTopic(params) {
			//我的错题
			this.axios.get('/web/student/errorQuestion/getErrorQuestion', {
				params
			}).then(res => {
				sessionStorage.setItem("topicList", JSON.stringify(res));
				this.modeFlase = false; //提示弹窗关闭
				this.Question = res.exercisesQuestion;
				this.CountVO = res.appSingMultTrueCountVO;
				this.show = 11;
			});
		},
		getExercises(params) {
			//章节练习
			this.axios.get(`/web/student/exercise/getExercises/${params}`).then(res => {
				sessionStorage.setItem("topicList", JSON.stringify(res));
				this.modeFlase = false; //提示弹窗关闭
				this.Question = res.exercisesQuestion;
				this.CountVO = res.appSingMultTrueCountVO;
				this.show = 11;
			});
		}
	}
}
